* {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: #64c6ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  position: relative;
}

.dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  margin-left: -5px;
  transform-origin: center 80px;
  perspective: 70px;
  transform-style: preserve-3d;
}

.dot:nth-child(1) {
  transform: rotate(0deg);
}

.dot:nth-child(1)::before, .dot:nth-child(1)::after {
  animation-delay: 0s;
}

.dot:nth-child(2) {
  transform: rotate(11.25deg);
}

.dot:nth-child(2)::before, .dot:nth-child(2)::after {
  animation-delay: -0.375s;
}

.dot:nth-child(3) {
  transform: rotate(22.5deg);
}

.dot:nth-child(3)::before, .dot:nth-child(3)::after {
  animation-delay: -0.75s;
}

.dot:nth-child(4) {
  transform: rotate(33.75deg);
}

.dot:nth-child(4)::before, .dot:nth-child(4)::after {
  animation-delay: -1.125s;
}

.dot:nth-child(5) {
  transform: rotate(45deg);
}

.dot:nth-child(5)::before, .dot:nth-child(5)::after {
  animation-delay: -1.5s;
}

.dot:nth-child(6) {
  transform: rotate(56.25deg);
}

.dot:nth-child(6)::before, .dot:nth-child(6)::after {
  animation-delay: -1.875s;
}

.dot:nth-child(7) {
  transform: rotate(67.5deg);
}

.dot:nth-child(7)::before, .dot:nth-child(7)::after {
  animation-delay: -2.25s;
}

.dot:nth-child(8) {
  transform: rotate(78.75deg);
}

.dot:nth-child(8)::before, .dot:nth-child(8)::after {
  animation-delay: -2.625s;
}

.dot:nth-child(9) {
  transform: rotate(90deg);
}

.dot:nth-child(9)::before, .dot:nth-child(9)::after {
  animation-delay: -3s;
}

.dot:nth-child(10) {
  transform: rotate(101.25deg);
}

.dot:nth-child(10)::before, .dot:nth-child(10)::after {
  animation-delay: -3.375s;
}

.dot:nth-child(11) {
  transform: rotate(112.5deg);
}

.dot:nth-child(11)::before, .dot:nth-child(11)::after {
  animation-delay: -3.75s;
}

.dot:nth-child(12) {
  transform: rotate(123.75deg);
}

.dot:nth-child(12)::before, .dot:nth-child(12)::after {
  animation-delay: -4.125s;
}

.dot:nth-child(13) {
  transform: rotate(135deg);
}

.dot:nth-child(13)::before, .dot:nth-child(13)::after {
  animation-delay: -4.5s;
}

.dot:nth-child(14) {
  transform: rotate(146.25deg);
}

.dot:nth-child(14)::before, .dot:nth-child(14)::after {
  animation-delay: -4.875s;
}

.dot:nth-child(15) {
  transform: rotate(157.5deg);
}

.dot:nth-child(15)::before, .dot:nth-child(15)::after {
  animation-delay: -5.25s;
}

.dot:nth-child(16) {
  transform: rotate(168.75deg);
}

.dot:nth-child(16)::before, .dot:nth-child(16)::after {
  animation-delay: -5.625s;
}

.dot:nth-child(17) {
  transform: rotate(180deg);
}

.dot:nth-child(17)::before, .dot:nth-child(17)::after {
  animation-delay: -6s;
}

.dot:nth-child(18) {
  transform: rotate(191.25deg);
}

.dot:nth-child(18)::before, .dot:nth-child(18)::after {
  animation-delay: -6.375s;
}

.dot:nth-child(19) {
  transform: rotate(202.5deg);
}

.dot:nth-child(19)::before, .dot:nth-child(19)::after {
  animation-delay: -6.75s;
}

.dot:nth-child(20) {
  transform: rotate(213.75deg);
}

.dot:nth-child(20)::before, .dot:nth-child(20)::after {
  animation-delay: -7.125s;
}

.dot:nth-child(21) {
  transform: rotate(225deg);
}

.dot:nth-child(21)::before, .dot:nth-child(21)::after {
  animation-delay: -7.5s;
}

.dot:nth-child(22) {
  transform: rotate(236.25deg);
}

.dot:nth-child(22)::before, .dot:nth-child(22)::after {
  animation-delay: -7.875s;
}

.dot:nth-child(23) {
  transform: rotate(247.5deg);
}

.dot:nth-child(23)::before, .dot:nth-child(23)::after {
  animation-delay: -8.25s;
}

.dot:nth-child(24) {
  transform: rotate(258.75deg);
}

.dot:nth-child(24)::before, .dot:nth-child(24)::after {
  animation-delay: -8.625s;
}

.dot:nth-child(25) {
  transform: rotate(270deg);
}

.dot:nth-child(25)::before, .dot:nth-child(25)::after {
  animation-delay: -9s;
}

.dot:nth-child(26) {
  transform: rotate(281.25deg);
}

.dot:nth-child(26)::before, .dot:nth-child(26)::after {
  animation-delay: -9.375s;
}

.dot:nth-child(27) {
  transform: rotate(292.5deg);
}

.dot:nth-child(27)::before, .dot:nth-child(27)::after {
  animation-delay: -9.75s;
}

.dot:nth-child(28) {
  transform: rotate(303.75deg);
}

.dot:nth-child(28)::before, .dot:nth-child(28)::after {
  animation-delay: -10.125s;
}

.dot:nth-child(29) {
  transform: rotate(315deg);
}

.dot:nth-child(29)::before, .dot:nth-child(29)::after {
  animation-delay: -10.5s;
}

.dot:nth-child(30) {
  transform: rotate(326.25deg);
}

.dot:nth-child(30)::before, .dot:nth-child(30)::after {
  animation-delay: -10.875s;
}

.dot:nth-child(31) {
  transform: rotate(337.5deg);
}

.dot:nth-child(31)::before, .dot:nth-child(31)::after {
  animation-delay: -11.25s;
}

.dot:nth-child(32) {
  transform: rotate(348.75deg);
}

.dot:nth-child(32)::before, .dot:nth-child(32)::after {
  animation-delay: -11.625s;
}

.dot::before, .dot::after {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  content: "";
}

.dot::before {
  background-color: #333;
  top: -100%;
  animation: rotate-black 2s infinite;
}

@keyframes rotate-black {
  0% {
    animation-timing-function: ease-in;
  }
  25% {
    transform: translate3d(0, 100%, 10px);
    animation-timing-function: ease-out;
  }
  50% {
    transform: translate3d(0, 200%, 0);
    animation-timing-function: ease-in;
  }
  75% {
    transform: translate3d(0, 100%, -10px);
    animation-timing-function: ease-out;
  }
}

.dot::after {
  background-color: #fff;
  top: 100%;
  animation: rotate-white 2s infinite;
}

@keyframes rotate-white {
  0% {
    animation-timing-function: ease-in;
  }
  25% {
    transform: translate3d(0, -100%, -10px);
    animation-timing-function: ease-out;
  }
  50% {
    transform: translate3d(0, -200%, 0);
    animation-timing-function: ease-in;
  }
  75% {
    transform: translate3d(0, -100%, 10px);
    animation-timing-function: ease-out;
  }
}
